'use strict';

var mongoose = require('mongoose');

const Schema = mongoose.Schema;

const LeagueType = { 
    id: Schema.ObjectId,
    name: {
        type: String,
        required: true
    },
    icon: {
        type: String,
        required: true
    },
};

const LeagueSchema = new Schema(LeagueType);

module.exports = {
    LeagueType,
    LeagueSchema,
    LeagueModel: mongoose.model('LeagueModel', LeagueSchema),
}